package cn.iocoder.an.module.business.dal.mysql.audittype;

import java.util.*;

import cn.iocoder.an.framework.common.pojo.PageResult;
import cn.iocoder.an.framework.common.pojo.PageParam;
import cn.iocoder.an.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.an.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.an.module.business.dal.dataobject.audittype.AuditConfigDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 审核项 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface AuditConfigMapper extends BaseMapperX<AuditConfigDO> {

    default List<AuditConfigDO> selectListByAuditTypeId(Long auditTypeId) {
        return selectList(AuditConfigDO::getAuditTypeId, auditTypeId);
    }

    default int deleteByAuditTypeId(Long auditTypeId) {
        return delete(AuditConfigDO::getAuditTypeId, auditTypeId);
    }

	default int deleteByAuditTypeIds(List<Long> auditTypeIds) {
	    return deleteBatch(AuditConfigDO::getAuditTypeId, auditTypeIds);
	}

}